<?php 
include "../function/function.php";
// include "./Lianxi.class.php";
// include "./Father01.class.php"

// 自动引入类
function __autoload($classname)
{
	$pathArr = array(
		'./'.$classname.'.class.php',
		'./interface.'.$classname.'.class.php',
		'./abstract.'.$classname.'.class.php',
		);

	foreach ($pathArr as $path) {
		if(file_exists($path)){
			include $path;
			break;
		}
	}
}





$a=new Lianxi("小明的外号");

$a->suiji(3);



$otherson=new Lianxison();

$otherson->use_son(2);




// $a->run();
// echo $a->sex;



 ?>